<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
<script type="text/javascript" src="http://libs.useso.com/js/respond.js/1.4.2/respond.min.js"></script>
<script type="text/javascript" src="http://cdn.bootcss.com/css3pie/2.0beta1/PIE_IE678.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/static/h-ui/css/H-ui.min.css" />
<link type="text/css" rel="stylesheet" href="__PUBLIC__/admin/static/h-ui.admin/css/H-ui.admin.css"/>
<!--[if IE 7]>
<link href="http://www.bootcss.com/p/font-awesome/assets/css/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>修改密码</title>
</head>
<body>
<div class="pd-20">
	<form class="Huiform" action="{:Url('Admin/index/change_pwd')}" method="post">
    <table class="table">
      <tbody>
		<tr>
          <th width="150" class="text-r" style="text-align:right;"><span class="c-red" style="color:red;">*</span>原密码：</th>
          <td><input type="password" style="width:200px" class="input-text" value="" id="teacher-new-password" name="old_password"></td>
        </tr>
		<tr>
          <th width="150" class="text-r" style="text-align:right;"><span class="c-red" style="color:red;">*</span>新密码：</th>
          <td><input type="password" style="width:200px" class="input-text" value="" id="teacher-new-password" name="password1"></td>
        </tr>
		<tr>
          <th width="150" class="text-r" style="text-align:right;"><span class="c-red" style="color:red;">*</span>确认密码：</th>
          <td><input type="password" style="width:200px" class="input-text" value="" id="teacher-new-password" name="password2"></td>
        </tr>
		<tr style="height:30px;">
		</tr>
        <tr>
          <th></th>
          <td><button class="btn btn-success radius" type="submit"><i class="icon-ok"></i> 确定</button></td>
        </tr>
      </tbody>
    </table>
	</form>
</div>
<script type="text/javascript" src="__PUBLIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/static/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript">
	$('.Huiform').submit(function(data) {
		var data=$('.Huiform').serializeArray();
		//获取form表单
		<!-- console.log(data); -->
		var url=$('.Huiform').attr("action");
		//获取地址
		$.post(url,data,function(result){
			//发送post请求
			if(result.code==201){
				//判断返回值
				layer.msg(result.msg,{icon:2,time:1000});
				//错误弹窗提示
			}else if(result.code==200){
				layer.msg(result.msg,{icon:1,time:1000});
				//成功弹窗提示
				setTimeout(function(){
					//定时运行
					var index = parent.layer.getFrameIndex(window.name);
					parent.layer.close(index);
					//关闭当前啊弹窗
				},1010);
			}
		});
		return false; 
	});
</script>
</body>
</html>